package com.invengo.base.utils;

public class NullUtils {
    public static NullTransform isNullAble(Object obj) {
        return (runnable, runnable2) -> {
            if (obj == null)
                runnable.run();
            else
                runnable2.run();
        };
    }
    @FunctionalInterface
    public interface NullTransform {
        void isNull(Runnable runnable,Runnable runnable2);
    }

}
